cmake_minimum_required(VERSION 3.19)
project(FacePreprocess)

set(CMAKE_CXX_STANDARD 17)

include(FetchContent)
FetchContent_Declare(dlib
        GIT_REPOSITORY https://github.com/davisking/dlib.git
        GIT_TAG v19.22
        )
FetchContent_MakeAvailable(dlib)

if (CMAKE_COMPILER_IS_GNUCXX)
    add_compile_options(-flto)
endif (CMAKE_COMPILER_IS_GNUCXX)

find_package(Threads REQUIRED)

add_executable(FacePreprocess main.cpp help.cpp walk.cpp dlib.cpp inc.h label.cpp)

target_link_libraries(FacePreprocess dlib::dlib Threads::Threads)